package com.loan.system.service;

import com.loan.system.domain.ApplyEntity;
import com.loan.system.domain.PayLogEntity;

/**
 * @author shiguang on 2022/9/7 15:52
 */
public interface PayLogService {

    void saveLog(ApplyEntity applyEntity, String type, String bankOrderNo);

    void saveLogFail(ApplyEntity applyEntity, String remark);

    void saveLogSuccess(ApplyEntity applyEntity, String bankOrderNo);

    void saveLogWait(ApplyEntity applyEntity,String remark);

    /**
     * 根据订单id获取最后一次打款记录
     * @param id
     * @return
     */
    PayLogEntity getByApplyId(Long id);

    /**
     * 根据订单获取最后一次放款失败记录
     * @param id
     * @return
     */
    PayLogEntity getFailByApplyId(Long id);
}
